<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body style="display: flex;justify-content: center">
<form method="post" action="/user/login" style="width: 400px;height: 300px;margin-top: 300px">
    <div style="text-align: center;font-size: 25px;color: darkcyan">登录界面</div>
    <div style="text-align: center;line-height: 50px">username：<input type="text" name="username"></div>
    <div style="text-align: center">password：<input type="password" name="password"></div>
    <div style="text-align: center;line-height: 50px"><input type="submit" value="登录"></div>
</form>
</body>
<!--<script>-->
<!--    function submit() {-->
<!--       let data = { username:$(".username").val()-->
<!--                    ,password:$(".password").val()}-->
<!--       $.ajax({-->
<!--           url:'/user/login',-->
<!--           data:data,-->
<!--           type:'post',-->
<!--           dataType:'json',-->
<!--           success:function (data) {-->
<!--             alert(data);-->
<!--           }-->
<!--       })-->

<!--    }-->

<!--</script>-->
</html>